package com.wyvoid.forum.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * User: cjp
 * Date: 2007-6-25
 * Time: 21:23:51
 */
public class SessionUser implements Serializable {
    private long id;
    private String nickname;//昵称
    private Date lastLoginTime;
    private int online;

    public static final int OFFLINE=0;
    public static final int HIDDEN=1;
    public static final int ONLINE=2;

    public SessionUser() {
    }


    public SessionUser(long id, String nickname,int online) {
        this.id = id;
        this.nickname = nickname;
        this.online=online;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }
}
